<!-- 
 @Author: LW  
 @Date: 2021-01-11 13:49:57  
 @function:基础管理-任务管理
 --> 
<template>
  <div>
    <el-row :gutter="10">
      <el-col :span="24">
        <el-card class="box-card">
          <iframe
            v-bind:src="reportUrl"
            width="100%"
            :height="iframeHeight"
            frameborder="0"
            scrolling="auto"
            id="iframename"
            name="iframename"
          ></iframe>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>
<script>
export default {
  components: {},
  data() {
    return {
      reportUrl:  this.$store.state.config.devopsURI + "/hangfire/",
      iframeHeight: "500px"
    };
  },
  watch: {},
  computed: {},
  /**html加载完成之前，执行。执行顺序：父组件-子组件 */
  created() {
    // let hrefUrl = window.location.href.substring(0, window.location.href.lastIndexOf(":") + 1);
    // if (hrefUrl.indexOf("139.155.71.56") > -1 || hrefUrl.indexOf("sczhdl.com.cn") > -1) {
    //   this.reportUrl = hrefUrl + this.$store.state.config.deveopsUrlPort+"/hangfire/";
    // } else {
    //   this.reportUrl = this.$store.state.config.devopsURI + "/hangfire/";
    // }
  },
  /**[页面初始化方法]html加载完成后执行。执行顺序：子组件-父组件*/
  mounted() {
    var h = (document.documentElement.clientHeight || document.body.clientHeight) * 0.9;
    this.iframeHeight = h + "px";
  },
  //事件方法执行
  methods: {}
};
</script>



